package com.starlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starlink.common.PageInfoTwo;
import com.starlink.model.domain.MallBooksDetailDO;
import com.starlink.model.request.MallBooksDetailAddRequest;
import com.starlink.model.request.MallBooksDetailRequest;
import com.starlink.model.request.mall.MallBuyRequest;
import com.starlink.model.vo.MallBooksDetailVO;
import com.starlink.model.vo.book.MallBooksDetailsVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhanghong
 */
public interface MallBooksDetailService extends IService<MallBooksDetailDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    MallBooksDetailVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfoTwo<MallBooksDetailVO> pageQuery(MallBooksDetailRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<MallBooksDetailVO> listQuery(MallBooksDetailRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(MallBooksDetailRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(MallBooksDetailRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean deleteByIds(String ids);

    /**
     * 根据条件查询书籍详情
     * @param request
     * @return
     */
    MallBooksDetailsVO selectByParam(MallBooksDetailRequest request);

    /**
     * 根据书籍信息ID查询
     * @param id
     * @return
     */
    MallBooksDetailsVO getByMallbooksId(Long id);

    /**
     * 编辑书籍详情
     * @param request
     * @return
     */
    Boolean editing(MallBooksDetailAddRequest request);
}